//
//  LYTopAlertManager.h
//  LYKitDemo
//
//  Created by Mac on 2017/9/29.
//  Copyright © 2017年 c++Demo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LYTopAlert.h"

typedef void(^SelectedAlertView)();
@interface LYTopAlertManager : NSObject

@property (nonatomic,strong)LYTopAlert *alertView;
+ (LYTopAlertManager *)shareManager;

@property (nonatomic,assign) NSInteger dismissTimes;


- (void)showWithType:(AlertViewType)type title:(NSString *)title;
- (void)dismissAlertWithTime:(NSInteger)time;
- (void)dismissAlertImmediately;

//弹出 会自动关闭
+ (void)showWithType:(AlertViewType)type title:(NSString *)title;

@property (nonatomic,copy) SelectedAlertView didselectedAlertViewBlock;
- (void)didSelectedAlertViewWithBlock:(SelectedAlertView) didselectedAlertViewBlock;

@end
